package com.hist.medical_treatment.dao;


import java.util.Date;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Result;
import org.apache.ibatis.annotations.Results;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.type.JdbcType;


@Mapper
public interface testDao {    
	   
         @Select("insert into test(id,datetime,date) values(#{id},datetime,#{date,jdbcType=DATE})")
         @Results({
        	 @Result(id=true, column="id",property="id"),
        	 @Result(column="date",property="date", jdbcType=JdbcType.DATE)
         })
         void insert(Integer id,Date date);
}
